package com.zimmur.service.impl.account;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zimmur.dao.account.IUserjeLogDao;
import com.zimmur.model.account.PointLogParameter;
import com.zimmur.model.account.UserjeLog;
import com.zimmur.model.account.view.LogView;
import com.zimmur.service.account.IUserjeLogService;

@Service("userjeLogService")
public class UserjeLogServiceImpl implements IUserjeLogService{

	@Resource
	private IUserjeLogDao userjeLogDao;
	
	@Override
	public List<LogView> selectPageListByUserId(PointLogParameter parameter) {
		return userjeLogDao.selectPageListByUserId(parameter);
	}

	@Override
	public boolean delete(long recId) {
		return userjeLogDao.deleteByPrimaryKey(recId)>0?true:false;
	}

	@Override
	public boolean insert(UserjeLog log) {
		return userjeLogDao.insertSelective(log)>0?true:false;
	}

	@Override
	public int selectPageListCount(PointLogParameter parameter) {
		return userjeLogDao.selectPageListCount(parameter);
	}

}
